﻿@model Capacitacion.Models.Review
@{
    ViewBag.Title = "Edit";
}
<h2>Edit</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Review</legend>
        @Html.HiddenFor(model => model.Id)
        <div class="editor-label">
            @Html.LabelFor(model => model.Restaurant)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Restaurant)
            @Html.ValidationMessageFor(model => model.Restaurant)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Created)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Created)
            @Html.ValidationMessageFor(model => model.Created)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Rating)
        </div>
        <div class="editor-field">
            1 @Html.RadioButtonFor(model => model.Rating, "1") &nbsp;&nbsp;&nbsp;&nbsp; 2 @Html.RadioButtonFor(model => model.Rating, "2")
            &nbsp;&nbsp;&nbsp;&nbsp; 3 @Html.RadioButtonFor(model => model.Rating, "3") &nbsp;&nbsp;&nbsp;&nbsp;
            4 @Html.RadioButtonFor(model => model.Rating, "4") &nbsp;&nbsp;&nbsp;&nbsp; 5 @Html.RadioButtonFor(model => model.Rating, "5")
            &nbsp;&nbsp;&nbsp;&nbsp; 6 @Html.RadioButtonFor(model => model.Rating, "6") &nbsp;&nbsp;&nbsp;&nbsp;
            7 @Html.RadioButtonFor(model => model.Rating, "7") &nbsp;&nbsp;&nbsp;&nbsp; 8 @Html.RadioButtonFor(model => model.Rating, "8")
            &nbsp;&nbsp;&nbsp;&nbsp; 9 @Html.RadioButtonFor(model => model.Rating, "9") &nbsp;&nbsp;&nbsp;&nbsp;
            10 @Html.RadioButtonFor(model => model.Rating, "10")
            @Html.ValidationMessageFor(model => model.Rating)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Comment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Comment)
            @Html.ValidationMessageFor(model => model.Comment)
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
